﻿using SD.App.Desktop.Entity;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SD.App.Desktop.Repository
{
    public interface IUserRepository : IRepository<User, long>
    {
        // 特有方法声明（无需重复定义 IsPrimaryKeyIdentity）
        Task<User?> GetUserByUsernameAsync(string username);
        Task<bool> UsernameExistsAsync(string username);
        Task<int> BatchActivateUsersAsync(List<long> userIds);
    }
}
